package org.pointex.service.impl;

import java.io.Serializable;








import java.util.Hashtable;

import org.pointex.common.service.impl.BaseServiceImpl;
import org.pointex.dao.impl.ConvertIndentDaoImpl;
import org.pointex.dao.impl.ConvertRuleDetailDaoImpl;
import org.pointex.dao.impl.ViewConvertUtilDaoImpl;
import org.pointex.domain.ConvertIndent;
import org.pointex.domain.ConvertRuleDetail;
import org.pointex.service.ConvertIndentService;
import org.pointex.service.ConvertRuleDetailService;
import org.pointex.service.ViewConvertUtilService;
import org.pointex.util.StringUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 
 * @ClassName: ConvertRuleDetailServiceImpl  
 * @Description: TODO(这里用一句话描述这个类的作用)  
 * @author Kenny_Z' szqiuk@gmail.com
 * @date 2016年10月23日 下午4:02:01  
 *
 */
@Service("ViewConvertUtilService")
public class ViewConvertUtilServiceImpl extends BaseServiceImpl<Hashtable<Object, Object>, Serializable> implements ViewConvertUtilService {
	
	@Autowired
	private ViewConvertUtilDaoImpl dao;
	
	public Hashtable<Object, Object> selectByUserName(String userName ) {
		try {
			if (userName != null && userName !="") {
				return dao.selectByUserName(userName);
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}	
	
	
	public Hashtable<Object, Object> authBuUserId(String  Id ) {
		try {
			if (!StringUtil.isNullOrEmpty(Id)) {
				return dao.authBuUserId(Id);
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}	
	
	
}
